//
//  BaseMapViewController.m
//  leo
//
//  Created by 张旭 on 15/10/24.
//  Copyright © 2015年 mdx. All rights reserved.
//

#import "BaseMapViewController.h"

@implementation BaseMapViewController
{
    MAMapStatus * _lastStatus;
}
@synthesize mapView = _mapView;
@synthesize fence;
@synthesize orignalLocation;
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

-(void)viewDidAppear:(BOOL)animated{
    [self initMapView];
}

- (void)initMapView
{
    self.mapView.frame = self.view.bounds;
    
    self.mapView.delegate = self;
    
    self.search.delegate = self;

    [self.view addSubview:self.mapView];
    
    _lastStatus = [self.mapView getMapStatus];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    if(self.view.window==nil)
    {
        self.view=nil;
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
